package com.ys.service.sys;

import org.springframework.ui.Model;

import com.ys.dto.DtreeDto;
import com.ys.vo.R;

import lombok.AllArgsConstructor;
import lombok.Data;

public interface SysRoleService {

	DtreeDto dtreeOfRole();

	DtreeDto dtreeOfAuth(Long sysRoleId);
	
	R addSubSysRole(Long pid, String name);
	
	R editSysRole(Long id, String name);
	
	String toEditSysRole(Model model, Long id);
	@Data
	@AllArgsConstructor
	public class ToEditSysRoleDto{
		private Long id; // ID
		private String name; // 菜单名称
	}
}
